package com.bruce.demo1.principles.demo5.lkp.demo1;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 经纪人类
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/28 18:35
 */
public class Agent {
    private Star star;
    private Fans fans;
    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    /**
     * 会议方法
     */
    public void meeting() {
        System.out.println(fans.getName() + "与明星【" + star.getName() + "】见面了。");
    }

    /**
     * 商业洽谈
     */
    public void business() {
        System.out.println(company.getName() + "与明星【" + star.getName() + "】洽谈业务");
    }
}
